@todo-today-color: #465efc;

:host {
  background-color: whitesmoke;
}

i.anticon {
  font-size: 19px !important;
  padding: 12px;
}

.detail-container {
  height: 100vh;
  overflow: auto;

  .todo {
    display: flex;
    align-items: center;
    background-color: white;
    font-weight: lighter;
    padding: 15px 10px;
    box-shadow: 0 0 2px rgba(146, 146, 146, 0.2);

    i {
      height: 24px;
      width: 24px;
      cursor: pointer;
      margin: 5px 10px 0 10px;
    }

    i.check {
      background: url("../../../../assets/imgs/check_default.png") no-repeat;

      &:hover {
        background: url("../../../../assets/imgs/check_hover.png") no-repeat;
      }
    }

    i.checked {
      background: url("../../../../assets/imgs/check_on.png") no-repeat;
    }

    .todo-text {
      font-size: 25px;
    }

    input {
      font-size: 25px;
      font-weight: lighter;
      border-width: 1px;
      border-radius: 3px;
      padding: 0 5px;
      width: 87%;
      border-color: #151414;
      border-style: solid;
      margin: -1px -6px;
    }
  }

  .detail {
    padding: 15px;

    & > div {
      box-shadow: 0 0 3px rgba(146, 146, 146, 0.2);
      margin-bottom: 15px;
      border-radius: 5px;
      font-size: 15px;
      cursor: pointer;

      &:hover:not(.notes) {
        background: whitesmoke;
      }
    }

    .myday,
    .reminder,
    .deadline {
      background-color: white;
      padding: 15px 20px;
      position: relative;

      &.group-top {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
      }

      &.group-bottom {
        border-top-right-radius: 0;
        border-top-left-radius: 0;
        margin-top: -14px;
      }

      .icon {
        width: 25px;
        height: 25px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 3px;
      }

      .text {
        position: absolute;
        top: 17px;
        left: 53px;

        &.today {
          color: @todo-today-color;
        }
      }
    }

    .notes {
      border-width: 1px;
      border-style: solid;
      border-color: white;
      padding-bottom: 10px;
      background-color: #fff;

      textarea {
        max-width: 328px;
        min-width: 328px;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        resize: none;
      }

      .notes-footer {
        display: flex;
        padding: 10px 10px 0 10px;

        .notes-left {
          flex: 1
        }
        background: white;

        .notes-btns {
          button {
            border: none;
            font-weight: bold;
            padding: 3px 10px;
            border-radius: 5px;
            cursor: pointer;
            border: solid 1px transparent;

            &:hover {
              border: solid 1px grey;
            }
          }

          .notes-cancel {
            background: #ededed;
          }

          .notes-ok {
            color: white;
            background-color: #465efc;
            margin-left: 5px;
          }
        }
      }
    }
  }

  .footer {
    background-color: white;
    font-weight: lighter;
    font-size: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -1px 0 rgba(146, 146, 146, 0.2);

    span {
      margin-left: 50px;
    }

    i {
      cursor: pointer;

      &:hover {
        background-color: whitesmoke;
      }

      &:last-child {
        float: right;
        margin-top: 2px;
      }
    }
  }
}
